        <section>
            <div class="container_8 clearfix">                

                <!-- Main Section -->

                <section class="main-section grid_8">

                    <!-- Statistics Section -->
                    <div class="main-content">
                        <header>
                            <ul class="action-buttons clearfix fr">
                                
                                
                            </ul>
                            <h2><?php echo $this->session->userdata('nama'); ?> dashboard, personal page</h2>
                        </header>
 
                                    <div class="message notice"><?php echo $this->session->flashdata('message'); ?></div>
                                
                        <section class="container_6 clearfix">
                                <div class="grid_4 clearfix">
                                    <header class="clearfix">
                                    <ul class="fr action-buttons">
                                        <li><a href="#" class="current button button-gray no-text"><span class="calendar-view-day"></span></a></li>
                                        
                                        
                                    </ul>
                                    <h3>Today's Stats</h3>
                                    </header>
                                    <section>
                                    <div class="grid_1 alpha">
                                        <div class="widget black ac">
                                            <header><h2>Transaction</h2></header>
                                            <section><h1>
                                                <?php 
                                                if (isset($totaltransaksipb)){
                                                    echo $totaltransaksipb->TOTAL;
                                                }
                                                ?>
                                            </h1></section>
                                        </div>
                                    </div>
                                    <div class="grid_1">
                                        <div class="widget black ac">
                                            <header><h2>User</h2></header>
                                            <section><h1>
                                                <?php 
                                                if (isset($totalpenggunapb)){
                                                    echo $totalpenggunapb->TOTAL;
                                                }
                                                ?>                                                    
                                                </h1></section>
                                        </div>
                                    </div>
                                    <div class="grid_1">
                                        <div class="widget black ac">
                                            <header><h2>Retailer</h2></header>
                                            <section><h1>
                                                <?php 
                                                if (isset($totalretailerpb)){
                                                    echo $totalretailerpb->TOTAL;
                                                }
                                                ?>                                                        
                                                </h1></section>
                                        </div>
                                    </div>
                                    <div class="grid_1 omega">
                                        <div class="widget black ac">
                                            <header><h2>Printer</h2></header>
                                            <section><h1>10                                                    
                                                </h1></section>
                                        </div>
                                    </div>
                                    <div class="grid_1 alpha">
                                        <div class="widget black ac">
                                            <header><h2>Ongoing Transaction</h2></header>
                                            <section><h1>                                                
                                                <?php 
                                                if (isset($totalongoingpb)){
                                                    echo $totalongoingpb->TOTAL;
                                                }
                                                ?>  </h1></section>
                                        </div>
                                    </div>
                                    <div class="grid_1">
                                        <div class="widget black ac">
                                            <header><h2>Printerwiki</h2></header>
                                            <section><h1>Check!</h1></section>
                                        </div>
                                    </div>
                                    <div class="grid_1">
                                        <div class="widget black ac">
                                            <header><h2>Printerforum</h2></header>
                                            <section><h1>Check!</h1></section>
                                        </div>
                                    </div>
                                    <div class="grid_1 omega">
                                        <div class="widget black ac">
                                            <header><h2>Your quota</h2></header>
                                            <section><h1>                                                
                                                <?php 
                                                if (isset($totalquotapb)){
                                                    echo $totalquotapb->TOTAL;
                                                }
                                                ?>  </h1></section>
                                        </div>
                                    </div>
                                    </section>
                                </div>
                                <?php
                                if (isset($totaltpeng)){
                                    $a = $totaltpeng->TOTAL / $totaltransaksipb->TOTAL;
                                } 
                                if (isset($totaltsuk)){
                                    $b = $totaltsuk->TOTAL / $totaltpeng->TOTAL;
                                } 
                                if (isset($totaltcan)){
                                    $c = $totaltcan->TOTAL / $totaltpeng->TOTAL;
                                } 
                                ?>
                                <!-- Progress Bars -->
                                <div class="grid_2">
                                    <h3>Historys</h3>
                                    <table class="simple full">
                                        <tbody><tr>
                                            <td style="width: 30%">Transaction</td><td style="width: 10%" class="ar"><?php echo $totaltpeng->TOTAL.'/'.$totaltransaksipb->TOTAL; ?></td><td style="width: <?php echo $a.'%'; ?>"><div class="progress progress-red"><span style="width: <?php echo $b.'%'; ?>"><b><?php echo $b; ?>%</b></span></div></td>
                                        </tr>
                                        <tr>
                                            <td>success</td><td class="ar"><?php echo $b = $totaltsuk->TOTAL.'/'.$totaltpeng->TOTAL; ?></td><td><div class="progress progress-orange"><span style="width: <?php echo $b.'%'; ?>"><b><?php echo $b; ?>%</b></span></div></td>
                                        </tr>
                                        <tr>
                                            <td>Cancelled by user</td><td class="ar"><?php echo $totaltcan->TOTAL.'/'.$totaltpeng->TOTAL; ?></td><td><div class="progress progress-blue"><span style="width: <?php echo $c.'%'; ?>"><b><?php echo $b; ?>%</b></span></div></td>
                                        </tr>
                                        <tr>
                                            <td>Cancelled</td><td class="ar">0/<?php echo $totaltransaksipb->TOTAL; ?></td><td><div class="progress progress-green"><span style="width: 0%"><b>0%</b></span></div></td>
                                        </tr>
                                    </tbody></table>
                                </div>
                                <!-- End Progress Bars -->
                        </section>
                    </div>
                    <!-- End Statistics Section -->
